package com.huawei.game;

import com.huawei.object.Computer;
import com.huawei.object.User;
import com.huawei.service.StoneScissorCloth1;

import java.util.Random;
import java.util.Scanner;

public class PlayGame {
    public static void main(String[] args) {
        //人-- 机 对战
        User B = new User();
        B.setName("James");
        Scanner input = new Scanner(System.in);
        B.setBodyLanguage(input.nextInt());

        User Z = new User();
        Z.setName("James");
        Scanner input2 = new Scanner(System.in);
        Z.setBodyLanguage(input2.nextInt());

        Computer computer1 = new Computer();
        computer1.setIp("192.168.1.1");
        Random random = new Random();
        computer1.setNumber(random.nextInt(3));

        StoneScissorCloth1 standard = new StoneScissorCloth1();

        //对应人的输赢平，0-输，1-赢，2-平
        switch (standard.gameStandardOfPerson(james.getBodyLanguage(),computer1.getNumber())){
            case 0:

                break;
            case 1:

                break;
            case 2:

                break;
        }

    }
}



